package com.easylinkin.linkappapi.afterloan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "afterloan_enterpriseinfo")
public class AfterloanEnterpriseinfo  extends Model<AfterloanEnterpriseinfo> {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公司名称
     */
    @TableField(value = "enterprise_name")
    private String enterpriseName;

    /**
     * 法人代表名称
     */
    @TableField(value = "lar_name")
    private String larName;

    /**
     * 注册资金
     */
    @TableField(value = "registe_capital")
    private String registeCapital;

    /**
     * 统一社会信用代码
     */
    @TableField(value = "enterprise_code")
    private String enterpriseCode;

    /**
     * 成立时间
     */
    @JsonFormat(pattern ="yyyy-MM-dd" ,timezone="GMT+8")
    @TableField(value = "establish_time")
    private Date establishTime;

    /**
     * 注册地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    /**
     * 数据源ID
     */
    @TableField(value = "data_source_id")
    private String dataSourceId;

    @TableField(value = "image_url")
    private String imageUrl;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "modify_time")
    private Date modifyTime;

    /**
     * 创建人id
     */
    @TableField(value = "creator")
    private String creator;

    /**
     * 修改人id
     */
    @TableField(value = "modifier")
    private String modifier;

    @TableField(exist = false)
    private List<AfterloanRiskType> afterloanRiskTypeList;

    @TableField(exist = false)
    private List<Integer> queryRiskCodeList;

    @TableField(exist = false)
    private Boolean isQueryRiskTypeAll;

    /***
     * 周风险数量
     */
    @TableField(exist = false)
    private Integer weekCount;

    /***
     * 月风险数量
     */
    @TableField(exist = false)
    private Integer monthCount;

    @TableField(exist = false)
    private List<Long> ids;

    /***
     * 周月区分
     */
    @TableField(exist = false)
    private Integer alarmType;

    @TableField(exist = false)
    private Integer isrisktypeall;
}